﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
      <div id="accordion">
        <xsl:for-each select="SanPham/LoaiSP">
          <div>
            <h3>
              <a href="#">
                <xsl:value-of select="@ten"/>
              </a>
            </h3>
            <div>
              <xsl:variable select="@id" name="id"/>
              <xsl:for-each select="yamaha"> 
                <xsl:variable select="MaSP" name="MaSP"/>
                <a href="Product.aspx?id={$id}&amp;masp={$MaSP}">
                  <xsl:value-of select="TenSP"/>
                </a>
                <br/>
              </xsl:for-each>
            </div>
          </div>
        </xsl:for-each>
      </div>
    </xsl:template>
</xsl:stylesheet>
